import React from 'react';
import {Image,Text,View,NativeModules} from 'react-native';
import {
    createStackNavigator
} from 'react-navigation';

import App from '../views/App.js';
import Login from '../views/login';
import Memu from '../views/menu';
import Office from '../views/office';
import Store from '../views/store';

const router = {
    app:{
        screen:App
    },
    ...addKeys([Login,Memu,Office,Store])
};
function addKeys(mRouters){
    let r = {};
    for (let route of mRouters){
        for(k in route){
            r[k] = route[k];
        }
    }
    return r;
}

export default createStackNavigator(router,{
    initialRouteName:"store",
    headerMode:"none"
});